package com.manage.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel(value = "用户对象", description = "这是用户对象")
@Table(name = "users")
public class Users {

    @ApiModelProperty(value = "用户账号", name = "userId", required = true)
    @Id
    @Column(name = "user_id")
    private String userId;

    @ApiModelProperty(value = "用户名", name = "userUsername", required = true)
    @Column(name = "user_username")
    private String userUsername;

    @ApiModelProperty(value = "密码", name = "userPassword", required = true)
    @Column(name = "user_password")
    private String userPassword;

    @ApiModelProperty(value = "地址", name = "userAddress")
    @Column(name = "user_address")
    private String userAddress;

    @ApiModelProperty(value = "真实姓名", name = "userName")
    @Column(name = "user_name")
    private String userName;

    @Column(name = "user_avator")
    private String userAvator;

    @ApiModelProperty(value = "身份证号码", name = "userCard")
    @Column(name = "user_card")
    private String userCard;

    @ApiModelProperty(value = "银行卡号", name = "userBankCard")
    @Column(name = "user_bank_card")
    private String userBankCard;

    @ApiModelProperty(value = "联系电话", name = "userPhone", required = true)
    @Column(name = "user_phone")
    private String userPhone;

    @ApiModelProperty(value = "是否为商家", name = "userIsBussiness")
    @Column(name = "user_is_bussiness")
    private Integer userIsBussiness;

    @ApiModelProperty(hidden = true)
    @Column(name = "create_time")
    private String createTime;

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取用户名
     *
     * @return user_username - 用户名
     */
    public String getUserUsername() {
        return userUsername;
    }

    /**
     * 设置用户名
     *
     * @param userUsername 用户名
     */
    public void setUserUsername(String userUsername) {
        this.userUsername = userUsername;
    }

    /**
     * 获取密码
     *
     * @return user_password - 密码
     */
    public String getUserPassword() {
        return userPassword;
    }

    /**
     * 设置密码
     *
     * @param userPassword 密码
     */
    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    /**
     * 获取地址
     *
     * @return user_address - 地址
     */
    public String getUserAddress() {
        return userAddress;
    }

    /**
     * 设置地址
     *
     * @param userAddress 地址
     */
    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    /**
     * 获取真实姓名
     *
     * @return user_name - 真实姓名
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置真实姓名
     *
     * @param userName 真实姓名
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取用户头像
     *
     * @return user_avator - 用户头像
     */
    public String getUserAvator() {
        return userAvator;
    }

    /**
     * 设置用户头像
     *
     * @param userAvator 用户头像
     */
    public void setUserAvator(String userAvator) {
        this.userAvator = userAvator;
    }

    /**
     * 获取身份证号码
     *
     * @return user_card - 身份证号码
     */
    public String getUserCard() {
        return userCard;
    }

    /**
     * 设置身份证号码
     *
     * @param userCard 身份证号码
     */
    public void setUserCard(String userCard) {
        this.userCard = userCard;
    }

    /**
     * 获取银行卡号
     *
     * @return user_bank_card - 银行卡号
     */
    public String getUserBankCard() {
        return userBankCard;
    }

    /**
     * 设置银行卡号
     *
     * @param userBankCard 银行卡号
     */
    public void setUserBankCard(String userBankCard) {
        this.userBankCard = userBankCard;
    }

    /**
     * 获取联系电话
     *
     * @return user_phone - 联系电话
     */
    public String getUserPhone() {
        return userPhone;
    }

    /**
     * 设置联系电话
     *
     * @param userPhone 联系电话
     */
    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    /**
     * 获取是否为商家
     *
     * @return user_is_bussiness - 是否为商家
     */
    public Integer getUserIsBussiness() {
        return userIsBussiness;
    }

    /**
     * 设置是否为商家
     *
     * @param userIsBussiness 是否为商家
     */
    public void setUserIsBussiness(Integer userIsBussiness) {
        this.userIsBussiness = userIsBussiness;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}